/* 
 *   Date       Developer   Description
 *   
 *
 *   Classname:  com.ytincl.sample.jdk.org.springframework.core.io.support.ResourcePatternResolver.A01
 * 
 *   Date:   2010-6-14
 * 
 *   The source code contained in this listing is proprietary to
 *   HLJ POST YITONG INFO-NET CO.,LTD.
 * 
 *   Unauthorized copying, adaptation, distribution, use, or display
 *   is strictly prohibited.
 *   This software is Copyright 2010 HLJ POST YITONG INFO-NET CO.,LTD.
 */
package SpringFramework.core.io.support.ResourcePatternResolver;

import org.springframework.beans.factory.config.PropertiesFactoryBean;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternResolver;


/**
 *
 *
 * @author Administrator
 *
 */
public class A01 {
    public static void main(String[] args) {
        try {
            //String aa = "classpath*:/com/ytincl/*/*/*/config/*-Spring.xml";
            //String aa = "classpath*:/com/ytincl/**";
            String aa = "classpath*:/com/ytincl/*";
            ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
            Resource[] rescs = resolver.getResources(aa);
            for (Resource resource : rescs) {
                System.out.println(resource);
            }
            
//            PropertiesFactoryBean config = new PropertiesFactoryBean();
//            config.setLocations(resouceList.toArray(new Resource[]{}));
//            config.afterPropertiesSet();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

